Download Certified Associate in Python Programming.PCAP-31-03.ExamTopics.2025-05-04.90q.tqb

Vendor: Python Institute
Exam Code: PCAP-31-03
Exam Name: Certified Associate in Python Programming
Date: May 04, 2025
File Size: 3 MB

How to open TQB files?

Files with TQB (Taurus Question Bank) extension can be opened by Taurus Exam Studio.

Demo Questions

Question 1
What is true about Python packages? (Choose two.)
  1. a code designed to initialize a package’s state should be placed inside a file named init.py
  2. a package’s contents can be stored and distributed as an mp3 file
  3. __pycache__ is a folder that stores semi-compiled Python modules
  4. the sys.path variable is a list of strings
Correct answer: AC
Question 2
What is true about the following snippet? (Choose two.)
  1. the string what a pity will be seen
  2. the string it's nice to see you will be seen
  3. the code will raise an unhandled exception
  4. the string I feel fine will be seen
Correct answer: BD
Question 3
What is the expected behavior of the following code?
  1. it outputs error
  2. it outputs <class 'indexerror'=""></class>
  3. the code is erroneous and it will not execute
  4. it outputs list assignment index out of range
Correct answer: C
Question 4
Which of the following expressions evaluate to True? (Choose two.)
  1. ord("0") - ord("9") == 10
  2. len("''") == 2
  3. chr(ord('z') - 1) == 'y'
  4. len(''1234'') == 4
Correct answer: CD
Question 5
Which of the following expressions evaluate to True? (Choose two.)
  1. 'xYz'.lower() > 'XY'
  2. '8'+'8' ! = 2 * '8'
  3. float ('3.14') == str('3.' + '14')
  4. 121 + 1 == int('1' + 2 * '2')
Correct answer: AD
Question 6
What is the expected behavior of the following code?
  1. it outputs 3
  2. it outputs 'None'
  3. it outputs 0
  4. it raises an exception
Correct answer: D
Question 7
What is the expected behavior of the following code?
the_list = "alpha;beta;gamma".split(";")
the_string = ''.join(the_list)
print(the_string.isalpha())
  1. it outputs True
  2. it outputs False
  3. it outputs nothing
  4. it raises an exception
Correct answer: A
Question 8
Which of the following invocations are valid? (Choose two.)
  1. sort("python")
  2. "python".find("")
  3. "python".sort()
  4. sorted("python")
Correct answer: BD
Question 9
Which of the following expressions evaluate to True? (Choose two.)
  1. 'in' in 'in'
  2. 'in' in 'Thames'
  3. 'in not' in 'not'
  4. 't'.upper() in 'Thames'
Correct answer: AD
Question 10
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Choose two.) string = 'python'[::2] string = string[-1] + string[-2]
  1. len(string) == 3
  2. string[0] == 'o'
  3. string[0] == string[-1]
  4. string is None
Correct answer: AB
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!